//shader to render rect widget leftbottom radius conner

#version 460
#extension GL_ARB_separate_shader_objects : enable
#extension GL_ARB_shading_language_420pack : enable

layout (location = 0) in vec4 InColor;
layout (location = 1) in vec2 InUV;
layout (location = 2) in float InInnerRadius;
layout (location = 0) out vec4 OutColor;

#extension GL_GOOGLE_include_directive : enable
#include "RectBlur.glslh"

void main() {

    //distance to the center of the circle
    float Distance= length(InUV - vec2(1, 0));
    float Alpha=RectBlur(Distance);
    OutColor = vec4(InColor.rgb, InColor.a*Alpha);
}
